home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 32 / Amiga Format AFCD32 (Nov 1998, Issue 117).iso / -seriously_amiga- / programming / other / hrtmon / hrtmonload.h < prev    next >
C/C++ Source or Header  |  1998-08-10  |  1KB  |  72 lines

  1.  
  2. /*
  3.  
  4.   Filename:    HRTmonLoad.h
  5.   Author:      Alain Malek
  6.   Description: Loading routines used by HRTmon and HRTmonPrefs
  7.  
  8. */
  9.  
  10. #include <exec/exec.h>
  11. #include <intuition/intuition.h>
  12. #include <intuition/classes.h>
  13. #include <intuition/classusr.h>
  14. #include <intuition/imageclass.h>
  15. #include <intuition/gadgetclass.h>
  16. #include <libraries/gadtools.h>
  17. #include <graphics/displayinfo.h>
  18. #include <graphics/gfxbase.h>
  19. #include <clib/exec_protos.h>
  20. #include <clib/intuition_protos.h>
  21. #include <clib/gadtools_protos.h>
  22. #include <clib/graphics_protos.h>
  23. #include <clib/utility_protos.h>
  24. #include <string.h>
  25.  
  26. #include "assembler.h"
  27.  
  28. #include <dos/dos.h>
  29.  
  30. #define SCREEN_PAL     0
  31. #define SCREEN_NTSC     1
  32. #define SCREEN_MULTISCAN 2
  33. #define SCREEN_MAX     3
  34.  
  35. #define TRUE 1
  36. #define FALSE 0
  37.  
  38. #define CFGVER 0x220
  39.  
  40. // config file format
  41.  
  42. typedef struct {
  43.     char id[4];            // HRT
  44.     int  version;
  45.     unsigned int address;
  46.     unsigned short col0, col1;
  47.     char abs;
  48.     char autoa;
  49.     char right;
  50.     char key;
  51.     char ide;
  52.     char insert;
  53.     char lview;
  54.     char vbr;
  55.     unsigned char keyboard;
  56.     unsigned char delay;
  57.     unsigned char screenmode;
  58.     char path[512];
  59. } CONFIG;
  60.  
  61. extern CONFIG config;
  62. extern int execver;
  63.  
  64. void set_default();
  65. void LoadInit();
  66. int Load(char *path);
  67. int LoadABS(int *memory,int *place);
  68.  
  69. int ShowReq(char *text,char*choice);
  70.  
  71.  
  72.